import axios from '../axios'

/* 
 * 系统登录模块
 */

// 生成验证码
export const getVerify = () => {
    return axios({
        url: '/kysj/login/getVerify',
        method: 'get',
        responseType: 'blob',
    })
}


// 登录校验
export const login = data => {
    return axios({
        url: '/kysj/login/login',
        method: 'post',
        data
    })
}

// 登出
export const logout = () => {
    return axios({
        url: '/kysj/login/outLogin',
        method: 'get'
    })
}